package com.jiang.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Set;

import com.jiang.vo.News;

public interface INewsDAO {

	public Boolean doCreateNews(News news) throws SQLException;
	
	public Boolean doRemoveBatch(Set<Integer> nids) throws SQLException;
	
	public Boolean doUpdate(News news) throws SQLException;
	
	public List<News> doSplit(String column, String value, Integer curPage, Integer lineSize) throws SQLException;
	// 获取分页总数
	public Integer getCount(String column, String value) throws SQLException;
	// 根据主键查询结果
	public News doFindById(Integer nid) throws SQLException;
	// 批量查询
	public List<News> doFind(String column, String value) throws SQLException;
	
	public List<News> doFindAll() throws SQLException;
	
	
}
